<?php

  /**
  * QuickSkin Extension dateformatgrid
  * Changes Dateformat
  *
  * @author Engelbert Turczyk
  * CVS ID: $Id: smarttemplate_extension_dateformatgrid.php,v 1.2 2006/04/30 19:56:04 endelwar Exp $
  */
  function quickskin_ext_dateformatgrid ( $param, $format = 'd.m.Y' )
  {
    list($month,$day,$year,$hour,$minute,$second) = split("[-:T\.]", $param);

    // handle empty values
    if (! $hour) { $hour = '00'; }
    if (! $minute) { $minute = '00'; }
    if (! $second) { $second = '00'; }

    return date( $format, mktime($hour, $minute, $second, $month, $day, $year));
  }

?>
